// uniapp集成微信JSSDK（wx、jWeixin）变量会冲突
// 根据os(systemInfo.platform)获取企业微信SDK 变量名
export default (platform) => {
  let eWechatSdk = ''
  switch (platform) {
    case 'ios':
      eWechatSdk = 'wx'
      break
    case 'android':
      eWechatSdk = 'jWeixin'
      break
    default: // other
      eWechatSdk = 'jWeixin'
      break
  }
  return eWechatSdk
}